<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
//                if(isset($_SERVER['HTTP_X_CLIENT_SCHEME'])){
//            $scheme = $_SERVER['HTTP_X_CLIENT_SCHEME'] . '://';
//        }elseif(isset($_SERVER['REQUEST_SCHEME'])){
//            $scheme = $_SERVER['REQUEST_SCHEME'] . '://';
//        }else{
//            $scheme = 'http://';
//        }
//        $url = $scheme.$_SERVER['SERVER_NAME'].'/hylh/';
//        $this->redirect($url);
        return $this->view->fetch();
    }

}
